package org.example.service.impl;

import org.example.mapper.CouplenameMapper;
import org.example.pojo.Couplename;
import org.example.service.CouplenameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CouplenameServiceImpl implements CouplenameService {

    @Autowired
    private CouplenameMapper couplenameMapper;

    @Override
    public String findById(Integer id) {
        String byId = couplenameMapper.findById(id);
        return byId;
    }

    @Override
    public void add(Integer id, Integer objectId, String timeTogether) {
        couplenameMapper.add(id, objectId,timeTogether);
    }

    @Override
    public Couplename relationDetails(Integer id) {
        return couplenameMapper.relationDetails(id);
    }

    @Override
    public Couplename CoupleFindById(Integer id) {
        return couplenameMapper.CoupleFindById(id);
    }

    @Override
    public Object getTime(Integer id) {
        return couplenameMapper.getTime(id);
    }


}
